package com.shqcjd.preinstallmobile.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.preinstallmobile.R;
import com.shqcjd.preinstallmobile.util.Glideutil;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class DefectInfoAdapter extends BaseQuickAdapter<String, DefectInfoAdapter.ViewHolder> {
    private Context context;

    public DefectInfoAdapter(@Nullable List<String> data, Context context) {
        super(R.layout.item_defect_info, data);
        this.context = context;
    }

    @Override
    protected void convert(ViewHolder helper, String item) {
        Glideutil.loadImag(context,helper.ivItemDefectInfo,item,113,113);
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.iv_item_defect_info)
        ImageView ivItemDefectInfo;

        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }

}
